package com.jeffdouglas.sashimi.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class SomeWidget extends Composite {

	  private static SomeWidgetUiBinder uiBinder = GWT
      .create(SomeWidgetUiBinder.class);

	  interface SomeWidgetUiBinder extends UiBinder<Widget, SomeWidget> {
	  }

	  private SomeObject someObject;

	  @UiField Label displayText; 

	public SomeWidget(SomeObject so) {
		this.someObject = so;
		initWidget(uiBinder.createAndBindUi(this));
		displayText.setText(someObject.getName());
	}

}
